<#include "/common/_itjson_layout.ftl" />
<@itjsonCommonLayout "md5">

<!-- begin主体 -->

                
    <div class="accordion" id="accordion2">
        <div class="accordion-group">
            
            

            <div class="alert alert-success alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">×</span></button>
                MD5加密工具（注：MD5加密是一种不可逆的加密算法）
            </div>
            
            <div class="panel">
                <form id="form1" class="form-horizontal" action="${www}/itjson/md5/" method="post">
                <div class="form-group">
                    <div class="col-sm-12">
                        <textarea class="form-control" id="txt_md5" name="txt_md5" rows="10" placeholder="要加密的字符串，例如：我爱MD5，更爱转换工具">${txt_md5!}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <button type="button" class="btn btn-success" onclick="latetext.value=hex_md5(txt_md5.value).substring(8,24).toUpperCase()">
                            MD5加密(16位大写)</button>
                        <button type="button" class="btn btn-success" onclick="latetext.value=hex_md5(txt_md5.value).substring(8,24)">
                            MD5加密(16位小写)</button>
                        <button type="button" class="btn btn-danger" onclick="md5empty()">
                            清空输入框</button>
                        <button type="submit" class="btn btn-success" onclick="getmd5httpstr('l')">
                            MD5加密(32位大写)</button>
                        <button type="submit" class="btn btn-success" onclick="getmd5httpstr('s')">
                            MD5加密(32位小写)</button>
                        <span id="copyallcode" class="btn btn-success" data-clipboard-target="latetext">复制加密结果</span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <textarea class="form-control" id="latetext" rows="10" placeholder="加密后的数据">${result!}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <div class="alert alert-success alert-dismissible text-center" id="copycodeall" role="alert">
                            <strong>复制成功!</strong> &nbsp;&nbsp;代码已经成功复制到剪切板&nbsp;&nbsp;可直接粘贴到任意地方.
                        </div>
                    </div>
                </div>
                </form>
            </div>
        </div>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="list-group-item list-group-item-warning" data-toggle="collapse" href="#demo1">
                    在线MD5加密工具,MD5加密是不可逆加密算法</a>
            </div>
            <div id="demo1" class="in collapse bs-docs-demoexample">
                <h4 style="color: #66be8c;">
                    MD5在线加密</h4>
                <br>
                <h5>
                    1,MD5加密是一种不可逆的加密算法,可根据加密值比较结果是否相等</h5>
                <h5>
                    2,本工具可实现32位大小写加密和16位大小写加密,可根据不同需求选择不同的加密算法（推荐32位大写加密）</h5>
                <h5>
                    3,本站不会记录您的任何信息,请放心使用</h5>
            </div>
        </div>
        <br>
    </div>


 

<!-- end主体 -->
        <script src="${contextPath}/them/1/js/md5.js" type="text/javascript"></script>
	    <script type="text/javascript">
	        function getmd5httpstr(act) {
	            document.all.form1.action = "${www}/itjson/md5/" + act + "-" + $("#txt_md5").val()+".html";
	            document.all.form1.submit();
	        }
	
	        function md5empty() {
	            $("#txt_md5").val("");
	            $("#latetext").val("");
	            $('#txt_md5').focus();
	        }
	    </script>
</@itjsonCommonLayout>